package com.daxt.model.service.archives.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "档案行为记录表", description = "档案行为记录表")
@TableName("archives_behave_log")
public class ArchivesBehaveLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id", name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "档案ids", name = "docIds")
    private String docIds;

    @ApiModelProperty(value = "操作编号", name = "operationCode")
    private String operationCode;

    @ApiModelProperty(value = "操作", name = "operation")
    private String operation;

    @ApiModelProperty(value = "行为描述", name = "description")
    private String description;

    @ApiModelProperty(value = "操作人id", name = "operationById")
    private String operationById;

    @ApiModelProperty(value = "操作人登录名", name = "operationLoginName")
    private String operationLoginName;

    @ApiModelProperty(value = "操作人", name = "operationBy")
    private String operationBy;

    @ApiModelProperty(value = "操作人单位", name = "operationByDept")
    private String operationByDept;

    @ApiModelProperty(value = "操作人角色", name = "operationByRole")
    private String operationByRole;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    private String createTime;

    @ApiModelProperty(value = "操作人ip地址",name = "operationByIp")
    private String operationByIp;

    @ApiModelProperty(value = "全宗id", name = "fondsId")
    private String fondsId;

    @ApiModelProperty(value = "全宗名称", name = "fondsName")
    @TableField(exist = false)
    private String fondsName;

    public ArchivesBehaveLog(String docIds,String operationCode,String operation,String description){
        this.docIds=docIds;
        this.operationCode=operationCode;
        this.operation=operation;
        this.description=description;
    }
}
